<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>

<html>
<head>
  <jsp:include page="templates/head.jsp" />
  <script type="text/javascript">
  	$(document).ready(function() {
    	$('#BookTabs').tabs();
    	$('body').updateHtml();
  	});
  </script>
</head>
<body>
<jsp:include page="templates/header.jsp" />
<div id="ContentBox">
<h3>${book.title}</h3>
<table>
  <tr>
    <td>Gatunek:</td>
    <td>${book.genre.description}</td>
  </tr>
  <tr>
    <td style="vertical-align: top;">Autor:</td>
    <td><c:forEach items="${book.authors}" var="author">
				${author.lname}, ${author.fname}<br />
    </c:forEach></td>
  </tr>
  <tr>
    <td>Opis:</td>
    <td>${book.description}</td>
  </tr>
</table>
</div>
<jsp:include page="templates/footer.jsp" />
</body>
</html>